package com.hqq.pack4;
/**
 * 学习异常通知
 */


import org.aspectj.lang.annotation.*;

@Aspect
public class MyAspect {

    @AfterThrowing(value = "execution(* *..SomeServiceImpl.doAfterThrowing(..))",throwing = "e")
    public void myAfterThrowing(Exception e){

        System.out.println("异常通知"+e.getMessage());
        //异常通知/ by zero

    }


}
